import request from "../utils/request";

//获取教师全部列表
export function GetTeacherList(params) {
    return request.get("/teacher",{params});
}

//教师编辑
export function UpdateTeacher(id, data) {
    return request.put(`/teacher/${id}`, data);
}

//教师添加
export function AddTeacher(data) {
    return request.post("/teacher",data);
}

//教师删除
export function DeleteTeacher(id){
    return request.delete(`/teacher/${id}`);
}

//模糊查询
export function QueryTeacher(keyword){
    return request.get(`/teacher?keyword=`+keyword);
}